
import routers from './route/index.js'
import stores from './store/index.js'
// // 3. 创建 router 实例，然后传 `routes` 配置
// // 你还可以传别的配置参数, 不过先这么简单着吧。
const router = new VueRouter(routers)

Vue.use(VueRouter)
Vue.use(Vuex)
const store = new Vuex.Store(stores)
new Vue({
    el: '#app', // 用于挂载要管理的元素=.$mount('#app')
    router,
    store,
    data() {
        return {
            // 路由列表
            routeMenuList: [
                {
                    route: "/home",
                    title: "home",
                    className: "",
                    child: [
                        {
                            route: "/home",
                            title: "home version 1",
                            className: "",
                            child: []
                        },
                        {
                            route: "/home1",
                            title: "home version 2",
                            className: "",
                            child: []
                        },
                        {
                            route: "/home2",
                            title: "home version 3",
                            className: "",
                            child: []
                        }
                    ]
                },
                {
                    route: "/shop-page",
                    title: "Women",
                    className: "mega-position",
                    type: 'col',
                    col: 4,
                    child: [
                        {
                            type: 'ul',
                            child: [
                                {
                                    route: "",
                                    title: "Clothings",
                                    className: "menu-title uppercase",
                                    child: []
                                },
                                {
                                    route: "/shop-page",
                                    title: "Dresses",
                                    className: "",
                                    child: []
                                },
                                {
                                    route: "/shop-page",
                                    title: "Tops",
                                    className: "",
                                    child: []
                                },
                                {
                                    route: "/shop-page",
                                    title: "skirt",
                                    className: "",
                                    child: []
                                },
                                {
                                    route: "/shop-page",
                                    title: "cardigan",
                                    className: "",
                                    child: []
                                },
                                {
                                    route: "/shop-page",
                                    title: "Outerwear",
                                    className: "",
                                    child: []
                                },
                                {
                                    route: "/shop-page",
                                    title: "Dresses",
                                    className: "",
                                    child: []
                                }
                            ]
                        },
                        {
                            type: 'ul',
                            child: [
                                {
                                    route: "",
                                    title: "Jewelry",
                                    className: "menu-title uppercase",
                                    child: []
                                },
                                {
                                    route: "/shop-page",
                                    title: "ring",
                                    className: "",
                                    child: []
                                },
                                {
                                    route: "/shop-page",
                                    title: "locket",
                                    className: "",
                                    child: []
                                },
                                {
                                    route: "/shop-page",
                                    title: "crown",
                                    className: "",
                                    child: []
                                },
                                {
                                    route: "/shop-page",
                                    title: "wristlet",
                                    className: "",
                                    child: []
                                },
                                {
                                    route: "/shop-page",
                                    title: "bracelet",
                                    className: "",
                                    child: []
                                }
                            ]
                        },
                        {
                            type: 'ul',
                            child: [
                                {
                                    route: "",
                                    title: "Shoes",
                                    className: "menu-title uppercase",
                                    child: []
                                },
                                {
                                    route: "/shop-page",
                                    title: "Flats",
                                    className: "",
                                    child: []
                                },
                                {
                                    route: "/shop-page",
                                    title: "Boots",
                                    className: "",
                                    child: []
                                },
                                {
                                    route: "/shop-page",
                                    title: "Sneakers",
                                    className: "",
                                    child: []
                                },
                                {
                                    route: "/shop-page",
                                    title: "slipper",
                                    className: "",
                                    child: []
                                },
                                {
                                    route: "/shop-page",
                                    title: "wellington",
                                    className: "",
                                    child: []
                                }
                            ]
                        },
                        {
                            type: 'ul',
                            child: [
                                {
                                    route: "/shop-page",
                                    type: 'img',
                                    className: "menu-img",
                                    src: 'assets/img/shop/1.jpg',
                                    child: []
                                }
                            ]
                        }

                    ]
                },
                {
                    route: "/shop-page",
                    title: "man",
                    className: "mega-position",
                    type: 'col',
                    col: 3,
                    child: [
                        {
                            child: [
                                {
                                    route: "",
                                    title: "Clothings",
                                    className: "menu-title uppercase",
                                    child: []
                                },
                                {
                                    route: "/shop-page",
                                    title: "suit",
                                    className: "",
                                    child: []
                                },
                                {
                                    route: "/shop-page",
                                    title: "shirt",
                                    className: "",
                                    child: []
                                },
                                {
                                    route: "/shop-page",
                                    title: "tie",
                                    className: "",
                                    child: []
                                },
                                {
                                    route: "/shop-page",
                                    title: "coat",
                                    className: "",
                                    child: []
                                },
                                {
                                    route: "/shop-page",
                                    title: "jacket",
                                    className: "",
                                    child: []
                                },
                                {
                                    route: "/shop-page",
                                    title: "t-shirt",
                                    className: "",
                                    child: []
                                },
                                {
                                    route: "/shop-page",
                                    title: "trouser",
                                    className: "",
                                    child: []
                                }
                            ]
                        },
                        {
                            child: [
                                {
                                    route: "",
                                    title: "Shoes",
                                    className: "menu-title uppercase",
                                    child: []
                                },
                                {
                                    route: "/shop-page",
                                    title: "Flats",
                                    className: "",
                                    child: []
                                },
                                {
                                    route: "/shop-page",
                                    title: "Boots",
                                    className: "",
                                    child: []
                                },
                                {
                                    route: "/shop-page",
                                    title: "Sneakers",
                                    className: "",
                                    child: []
                                },
                                {
                                    route: "/shop-page",
                                    title: "slipper",
                                    className: "",
                                    child: []
                                },
                                {
                                    route: "/shop-page",
                                    title: "wellington",
                                    className: "",
                                    child: []
                                },
                                {
                                    route: "/shop-page",
                                    title: "sanda",
                                    className: "",
                                    child: []
                                },
                                {
                                    route: "/shop-page",
                                    title: "sock",
                                    className: "",
                                    child: []
                                }
                            ]
                        },
                        {
                            child: [
                                {
                                    route: "/shop-page",
                                    type: 'img',
                                    src: 'assets/img/shop/1.jpg',
                                    className: "menu-img",
                                    child: []

                                }
                            ]
                        },
                    ]
                },
                {
                    route: "/shop-page",
                    title: "shop",
                    className: "",
                    type: 'col',
                    col: 2,
                    child: [
                        {
                            child: [
                                {
                                    route: "",
                                    title: "Jewelry",
                                    className: "menu-title uppercase",
                                    child: []
                                },
                                {
                                    route: "/shop-page",
                                    title: "ring",
                                    className: "",
                                    child: []
                                },
                                {
                                    route: "/shop-page",
                                    title: "locket",
                                    className: "",
                                    child: []
                                },
                                {
                                    route: "/shop-page",
                                    title: "crown",
                                    className: "",
                                    child: []
                                },
                                {
                                    route: "/shop-page",
                                    title: "wristlet",
                                    className: "",
                                    child: []
                                },
                                {
                                    route: "/shop-page",
                                    title: "bracelet",
                                    className: "",
                                    child: []
                                }]


                        },
                        {
                            child: [
                                {
                                    route: "",
                                    title: "Clothings",
                                    className: "menu-title uppercase",
                                    child: []
                                },
                                {
                                    route: "/shop-page",
                                    title: "ring",
                                    className: "",
                                    child: []
                                },
                                {
                                    route: "/shop-page",
                                    title: "locket",
                                    className: "",
                                    child: []
                                },
                                {
                                    route: "/shop-page",
                                    title: "crown",
                                    className: "",
                                    child: []
                                },
                                {
                                    route: "/shop-page",
                                    title: "wristlet",
                                    className: "",
                                    child: []
                                },
                                {
                                    route: "/shop-page",
                                    title: "bracelet",
                                    className: "",
                                    child: []
                                }]


                        }
                    ]
                },
                {
                    route: "/pages",
                    title: "pages",
                    className: "",
                    child: [
                        {
                            route: "/about-us",
                            title: "about us",
                            className: "",
                            child: []
                        },
                        {
                            route: "/cart",
                            title: "cart",
                            className: "",
                            child: []
                        },
                        {
                            route: "/checkout",
                            title: "checkout",
                            className: "",
                            child: []
                        },
                        {
                            route: "/wishlist",
                            title: "wishlist",
                            className: "",
                            child: []
                        },
                        {
                            route: "/login",
                            title: "login",
                            className: "",
                            child: []
                        },
                        {
                            route: "/register",
                            title: "register",
                            className: "",
                            child: []
                        },
                        {
                            route: "/shop-page",
                            title: "shop page",
                            className: "",
                            child: []
                        },
                        {
                            route: "/shop-list",
                            title: "shop list",
                            className: "",
                            child: []
                        },
                        {
                            route: "/single-product",
                            title: "single product",
                            className: "",
                            child: []
                        },
                        {
                            route: "/404",
                            title: "404 page",
                            className: "",
                            child: []
                        },

                    ]
                },
                {
                    route: "/blog-page",
                    title: "blog",
                    className: "",
                    child: [
                        {
                            route: "/blog-page",
                            title: "blog-page",
                            className: "",
                            child: []
                        },
                        {
                            route: "/blog-detail",
                            title: "blog-details",
                            className: "",
                            child: []
                        }

                    ]
                },
                {
                    route: "/contact",
                    title: "contact",
                    className: "",
                    child: []
                },
            ]
        }
    },
    mounted(){
    },
    methods: {
        
    },
});